import fetch from '@/utils/fetch';

export function addCompute(data) {
  return fetch({
    url: '/api/customerOrder/compute/add',
    method: 'post',
    data
  });
}

export function computeList(data) {
  return fetch({
    url: '/api/customerOrder/compute/list',
    method: 'post',
    data
  });
}

export function deleteProduct(data) {
  return fetch({
    url: '/api/customerOrder/compute/prd/delete',
    method: 'post',
    data
  });
}

export function deletePartSub(data) {
  return fetch({
    url: '/api/customerOrder/compute/part/sub/delete',
    method: 'post',
    data
  });
}

export function deleteCompute(data) {
  return fetch({
    url: '/api/customerOrder/compute/delete',
    method: 'post',
    data
  });
}

export function deletePart(data) {
  return fetch({
    url: '/api/customerOrder/compute/part/delete',
    method: 'post',
    data
  });
}

export function modifyPart(data) {
  return fetch({
    url: '/api/customerOrder/compute/part/modify',
    method: 'post',
    data
  });
}

export function computeProcess(data) {
  return fetch({
    url: '/api/customerOrder/compute/process',
    method: 'post',
    data
  });
}

export function accDetailPart(data) {
  return fetch({
    url: '/api/customerOrder/accounting/detail/part',
    method: 'post',
    data
  });
}

export function processDetail(data) {
  return fetch({
    url: '/api/customerOrder/compute/detail/process-detail',
    method: 'post',
    data
  });
}

export function moldDetail(data) {
  return fetch({
    url: '/api/customerOrder/compute/mold/detail',
    method: 'post',
    data
  });
}

export function getPartList(data) {
  return fetch({
    url: '/api/customerOrder/compute/getPartList',
    method: 'post',
    data
  });
}

export function processCostItemList(data) {
  return fetch({
    url: '/api/customerOrder/dict/processCostItemList',
    method: 'post',
    data
  });
}

export function processCostItemUnitList(data) {
  return fetch({
    url: '/api/customerOrder/dict/processCostItemUnitList',
    method: 'post',
    data
  });
}

export function customerList(data) {
  return fetch({
    url: '/api/customerOrder/dict/customerList',
    method: 'post',
    data
  });
}

export function rawNatureList(data) {
  return fetch({
    url: '/api/customerOrder/dict/rawNatureList',
    method: 'post',
    data
  });
}

export function defaultSubPartList(data) {
  return fetch({
    url: '/api/customerOrder/dict/defaultSubPartList',
    method: 'post',
    data
  });
}

export function defaultPartList(data) {
  return fetch({
    url: '/api/customerOrder/dict/defaultPartList',
    method: 'post',
    data
  });
}

export function delProcessItem(data) {
  return fetch({
    url: '/api/customerOrder/compute/processItemDel',
    method: 'post',
    data
  });
}
